package com.site.service;

import com.site.dao.HeaderDao;
import com.site.entity.HeaderEntity;

import java.sql.SQLException;
import java.util.List;

public class HeaderService {
    HeaderDao dao;
    public HeaderService() throws SQLException, ClassNotFoundException {
        dao=new HeaderDao();
    }

    public List<HeaderEntity> getAll() throws SQLException {
        return dao.getAll();
    }
}
